<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div>
    <ul>
      <li>First</li>
      <li>Second</li>
      <li>Third</li>
      <li>Forth</li>
      <li>Fifth</li>
    </ul>
  </div>
</body>
<style>
  html, body {
    margin: 0;
  }
  ul,li {list-style:none;}
  ul {
    padding: 0;
    margin: 0;
    height: 100%;

    /* grid 提供多行多列的文字，放在一行里进行垂直居中的解决方案 */
    display: grid;
    /* 为 grid 下的子元素提供 template 模板 */
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-content: center;

  }
  li {
    font-size: large;
    font-weight: bold;
    color: white;
    text-align: center;
  }
  div {
    border:steelblue solid 2px;
    height: 100px;
    width: 50%;
    background-color: turquoise;
  }
</style>
</html>